package com.wanglei.domain.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class MenuVVo {

    private Long id;

    /**
     * 菜单名称
     */
    @JsonIgnore //json 对象传给前端时不传该属性 失效？？？
    private String menuName;

    private String label;

    /**
     * 父菜单ID
     */
    private Long parentId;

    private List<MenuVVo> children;
}
